﻿using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core.Exceptions
{
    /// <summary>
    /// 表示编译异常
    /// </summary>
    public class CompilerException : Exception
    {
        /// <summary>
        /// 编译错误集合
        /// </summary>
        public IEnumerable<CompilerError> Errors { get; private set; }

        public CompilerException(string Msg, IEnumerable<CompilerError> Errors) : base(Msg)
        {
            this.Errors = Errors;
        }
    }
}